/*
 * TwoButton.h
 *
 *  Created on: 10/ago/2011
 *      Author: marcolembo
 */

#ifndef TWOBUTTON_H_
#define TWOBUTTON_H_

class TwoButton {

	struct  BtnRange
	{
		short start;
		short end;
	};

	public:
		TwoButton(short _pin);

		bool IsBtnOnePressed() const;
		bool IsBtnTwoPressed() const;



		virtual ~TwoButton();

	protected:
		static const BtnRange rangeEnterBtn;
		static const BtnRange rangeEscBtn;

		short m_pin;
		mutable bool m_wasPressedBtnOne;
		mutable bool m_wasPressedBtnTwo;
};

#endif /* TWOBUTTON_H_ */
